<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>提交审核的活动列表</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
     <script type="text/javascript" src="<%=path%>/js/My97DatePicker/WdatePicker.js"></script>
  <script type="text/javascript">
  //审核
  function pass(activityid){
    location.href="<%=basePath%>act/actInfo?activityid="+activityid;  
  
  }
  
  </script>
  </head>
  
  <body><table border="1">
  <tr>
    <td>序号</td>
    <td>活动名称</td>
    <td>所属社团</td>
    <td>申请时间</td>
    <td>状态</td>
    <td>操作 </td>
  </tr>
  <c:forEach items="${pageFinder.dataList}" var="list" varStatus="status">
  <tr>
    <td>${status.index+1}</td>
    <td>${list.actname}</td>
    <td>
    <c:forEach items="${listcommunity}" var="communitys" varStatus="status">
    <c:if test='${communitys.cnumber==list.cnumber}'>
     <option value="${communitys.cnumber}">
     ${communitys.cname}
     </option>
     </c:if>
    </c:forEach>
    </td>
    <td><fmt:formatDate value='${list.createtime}' type='date' pattern='yyyy-MM-dd HH:mm:ss'/>   </td>
    <td>
    <c:if test='${list.status==4}'>审核不通过</c:if>
    <c:if test='${list.status==5}'>审核通过</c:if>
     <c:if test='${list.status==6}'>申请审核</c:if>
    </td>
    <td><input type="button" onclick="pass(${list.activityid});" value="审核"/></td>
  </tr>
  </c:forEach>
  
  <tr>
			<td class="style5">&nbsp;&nbsp;共有 ${pageFinder.rowCount }
				条记录，当前第 ${pageFinder.pageNo }/${pageFinder.pageCount } 页</td>
			<td><table border="0" align="right" cellpadding="0"
					cellspacing="0">
					<tr>
						<c:if test="${pageFinder.pageNo} > 1">
							<td width="40"><a href="javascript:first()"><img
									src="images/manager/first.gif" width="37" height="15" />
							</a>
							</td>
							<td width="45"><a href="javascript:previous()"><img
									src="images/manager/back.gif" width="43" height="15" />
							</a>
							</td>
						</c:if>
						<c:if test="${pageFinder.pageNo } < ${pageFinder.pageCount }">
							<td width="45"><a href="javascript:next()"><img
									src="images/manager/next.gif" width="43" height="15" />
							</a>
							</td>
							<td width="40"><a href="javascript:last()"><img
									src="images/manager/last.gif" width="37" height="15" />
							</a>
							</td>
						</c:if>
						<form action="<%=basePath%>act/unread?typeid=6" method="post"  id="pageForm">
						<td width="100"><div align="center">
								<span class="mainFont">转到第 <input id="inputPage"
									name="pageFinder.pageNo" type="text" size="4"
									style="height:12px; width:20px; border:1px solid #999999;" />
									<input type="hidden" id="hiddenPagge"
									value="${pageFinder.pageCount }" /> 页 </span>
							</div>
						</td></form>
						<td width="40"><input type="submit" value="" class="images" />
						</td>
					</tr>
				</table>
			</td>
		</tr>
		
</table>
  
  </body>
</html>
